package com.cz.fra.dao;

import java.util.List;

import com.cz.fra.entity.User;

public interface AccountDao {

	/**
	 * 
	 * @param user
	 * @return
	 * @throws PersistenceException
	 * @throws EntityNotFoundException
	 */
	public String addAccount(User user) throws PersistenceException, EntityNotFoundException;
	
	/**
	 * 
	 * @param user
	 * @return
	 * @throws PersistenceException
	 * @throws EntityNotFoundException
	 */
	public boolean checkUserName(User user) throws PersistenceException, EntityNotFoundException;
	
	/**
	 * 
	 * @return
	 * @throws PersistenceException
	 * @throws EntityNotFoundException
	 */
	public List<String> getUsernameList() throws PersistenceException, EntityNotFoundException;
	
	/**
	 * 
	 * @return
	 * @throws PersistenceException
	 * @throws EntityNotFoundException
	 */
	public List<User> getUserList() throws PersistenceException, EntityNotFoundException;
	/**
	 * 
	 * @param username
	 * @return
	 * @throws PersistenceException
	 * @throws EntityNotFoundException
	 */
	public int getUserIdByUsername(String username) throws PersistenceException, EntityNotFoundException;
}
